import {ServerRouteApi} from "./serverRouteApi";
import {RequestHeader} from "./requestHeader";
import {HttpProvider} from "./httpProvider";
import {AbstractService} from "../service/abstractService";
import {EventBus} from "./event";
import {UserService} from "../service/userService";
import {MessageService} from "../service/messageService";
import {ChatService} from "../service/chatService";

export const apiConfig = new ServerRouteApi();
export const requestHeader = new RequestHeader();
export const httpServer = new HttpProvider();
export const eventBus = new EventBus();
export const abstractSvc = new AbstractService();
export const chatSvc = new ChatService();
export const userSvc = new UserService();
export const messageSvc = new MessageService();


let loginState = false
export const changeLoginState = (state) => {
  loginState = state
  return loginState
}
export const getLoginState = () => {
  return loginState
}
